package cn.monkey.family.server.domain.shop.item.type;

import cn.monkey.family.data.Result;
import cn.monkey.family.data.crud.CrudService;
import cn.monkey.family.data.shop.item.type.ItemTypeDto;
import cn.monkey.family.data.shop.item.type.ItemTypeQueryRequest;
import cn.monkey.family.data.shop.item.type.ItemTypeVo;
import org.springframework.data.domain.Sort;

import java.util.Collection;

public interface IItemTypeService extends CrudService<String, ItemTypeQueryRequest, ItemTypeDto, ItemTypeVo> {

    Result<Collection<ItemTypeVo>> readTree(ItemTypeQueryRequest queryRequest, Sort sort, Integer maxDeep);

    Result<Collection<String>> distinctKey(ItemTypeQueryRequest queryRequest, Sort sort);
}
